//
//  HealthCell.m
//  WE
//
//  Created by iMacOne on 15/11/19.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "HealthCell.h"
#import "Head.h"
#import "ToolUtil.h"
@interface HealthCell ()
@property (nonatomic, strong)UIImageView * aImgeView;
@property (nonatomic, strong)UILabel * titleLbl;
@property (nonatomic, strong)UILabel * contentLbl;

@end
@implementation HealthCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.aImgeView = [[UIImageView alloc] initWithFrame:CGRectMake(margin_10 * Width, margin_10 * Height, margin_90* Width , margin_64* Height)];
        self.aImgeView.layer.masksToBounds = YES;
        self.aImgeView.layer.cornerRadius = 5;
        self.aImgeView.backgroundColor = DEBUG_CLOLR;
        
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_aImgeView.frame) + margin_10, _aImgeView.frame.origin.y, (WindowWidth - CGRectGetMaxX(_aImgeView.frame) - margin_10) - margin_10, margin_15)];
        _titleLbl.font = FONT(14);
        _titleLbl.text = @"警惕 这些相克的食物千万不能随便吃的 ";
        
        self.contentLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_aImgeView.frame) + margin_10, CGRectGetMaxY(_titleLbl.frame) + margin_3, _titleLbl.frame.size.width, margin_34)];
        _contentLbl.font = FONT(12);
        _contentLbl.textColor = [UIColor grayColor];
        _contentLbl.text = @"前段时间播出的 <<医馆笑谈>> 中  樱桃和虾通吃 不能乱吃 乱搭配哦...";
        _contentLbl.numberOfLines = 0;
        [self.contentView addSubview:_aImgeView];
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_contentLbl];
       
    }
    return self;
}
@end
